﻿using UnityEngine;
using System.Collections;

public class StartUIManager : MonoBehaviour {

    public static StartUIManager Instance;

    public Transform LoginUI;

    public Transform RegistUI;

    void Awake()
    {
        Instance = this;
    }


    public void LoginUIShow()
    {
        Debug.LogError("2222222222222");
        if (RegistUI.gameObject.activeSelf)
        {
            RegistUI.gameObject.SetActive(false);
        }

        if (!LoginUI.gameObject.activeSelf)
        {
            LoginUI.gameObject.SetActive(true);
        }
        Debug.LogError("11111111111");
    }

    public void RegistUIShow()
    {
        if (LoginUI.gameObject.activeSelf)
        {
            LoginUI.gameObject.SetActive(false);
        }

        if (!RegistUI.gameObject.activeSelf)
        {
            RegistUI.gameObject.SetActive(true);
        }
    }

}
